//
//  ScheduleInfo.m
//  EpointFrame5
//
//  Created by Pill Gong on 14-2-18.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "ScheduleInfo.h"

@implementation ScheduleInfo

- (void)setContentWithArray:(GDataXMLElement *)arr {
    GDataXMLElement *ActivityID = [[arr elementsForName:@"ActivityID"] objectAtIndex:0];
    self.ActivityID = [ActivityID stringValue];
    
    GDataXMLElement *Subject = [[arr elementsForName:@"Subject"] objectAtIndex:0];
    self.Subject = [Subject stringValue];
    
    GDataXMLElement *Location = [[arr elementsForName:@"Location"] objectAtIndex:0];
    self.Location = [Location stringValue];
    
    GDataXMLElement *FromDateTime = [[arr elementsForName:@"FromDateTime"] objectAtIndex:0];
    self.FromDateTime = [FromDateTime stringValue];
    
    GDataXMLElement *ToDateTime = [[arr elementsForName:@"ToDateTime"] objectAtIndex:0];
    self.ToDateTime = [ToDateTime stringValue];
    
    GDataXMLElement *Importance = [[arr elementsForName:@"Importance"] objectAtIndex:0];
    self.Importance = [Importance stringValue];
    
    GDataXMLElement *ActivityDescription = [[arr elementsForName:@"ActivityDescription"] objectAtIndex:0];
    self.ActivityDescription = [ActivityDescription stringValue];
    
    GDataXMLElement *IFNotice = [[arr elementsForName:@"IFNotice"] objectAtIndex:0];
    self.IFNotice = [IFNotice stringValue];
    
    GDataXMLElement *TXMobile = [[arr elementsForName:@"TXMobile"] objectAtIndex:0];
    self.TXMobile = [TXMobile stringValue];
    
    GDataXMLElement *SendTime = [[arr elementsForName:@"SendTime"] objectAtIndex:0];
    self.SendTime = [SendTime stringValue];
}

- (void)updateInfoWith:(ScheduleInfo *)info {
    self.ActivityID = info.ActivityID;
    self.Subject = info.Subject;
    self.Location = info.Location;
    self.FromDateTime = info.FromDateTime;
    self.ToDateTime = info.ToDateTime;
    self.Importance = info.Importance;
    self.ActivityDescription = info.ActivityDescription;
    self.IFNotice = info.IFNotice;
    self.TXMobile = info.TXMobile;
    self.SendTime = info.SendTime;
}

@end
